package com.xxmw.transaction.model.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户开通的页面模块表
 * @author luowenliang
 * @since 2020/4/15 09:41
 */
@Getter
@Setter
@TableName(value = "user_module")
public class UserModule implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 模块ID
     */
    private Integer moduleId;

    /**
     * 过期时间 为null无期限
     */
    private Date expired;
}
